package com.flurry.android;

import android.os.AsyncTask;
import java.util.HashMap;
import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.SingleClientConnManager;
import org.apache.http.message.AbstractHttpMessage;
import org.apache.http.params.BasicHttpParams;
import org.json.JSONObject;

abstract class a extends AsyncTask<HashMap<String, Object>, Void, JSONObject>
{
  protected HttpClient a = null;
  protected HttpHost b = null;
  protected AppCloudResponseHandler c;
  protected AppCloudResponseRequestManagerHandler d = null;
  protected HashMap<String, Object> e = null;

  protected a()
    throws Exception
  {
    try
    {
      this.b = new HttpHost(FlurryAppCloud.I(), 443, "https");
      SchemeRegistry localSchemeRegistry = new SchemeRegistry();
      localSchemeRegistry.register(new Scheme("https", new EasySSLSocketFactory(), 443));
      BasicHttpParams localBasicHttpParams = new BasicHttpParams();
      this.a = new DefaultHttpClient(new SingleClientConnManager(localBasicHttpParams, localSchemeRegistry), localBasicHttpParams);
      return;
    }
    catch (Exception localException)
    {
      throw localException;
    }
  }

  protected static void a(AbstractHttpMessage paramAbstractHttpMessage, HashMap<String, Object> paramHashMap)
  {
    paramAbstractHttpMessage.setHeader("Authorization", (String)paramHashMap.get("auth"));
    paramAbstractHttpMessage.setHeader("APPCLOUD-USER-SESSION", (String)paramHashMap.get("session"));
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.a
 * JD-Core Version:    0.6.2
 */